<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="utf-8">
    <title>WebSocket Logger</title>
    <link rel="stylesheet" th:href="@{/static/qrcodes.css}" />
    <link rel="stylesheet" th:href="@{/static/bootstrap-3.3.7/css/bootstrap.css}">
    <link rel="stylesheet" th:href="@{/static/table/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/static/table/bootstrap-table.css}">
    <link rel="stylesheet" th:href="@{/static/css/font-awesome.min.css}"  >
    <link rel="stylesheet" th:href="@{/static/bootstrap-3.3.7/css/bootstrap.min.css}">
 <!--   <link rel="stylesheet" type="text/css" th:href="@{/static/daterangepicker/daterangepicker.css}" />-->
    <script type="text/javascript" th:src="@{/static/gamebar_Admin_files_in/jquery-1.7.2.js}"></script>
   <!-- <script th:src="@{/static/daterangepicker/moment.js}"></script>-->
    <!--<script th:src="@{/static/daterangepicker/daterangepicker.js}"></script>-->
    <!-- <link rel="stylesheet" th:href="@{/static/qrcodes.css}" />-->
    <!--    <link rel="stylesheet" th:href="@{/static/table/button.css}">-->
</head>
<body style="width: 99%">
<div class = "pg_header">
    <span class="pg_dl" id="i77" th:align="center">设备列表</span>
</div>
<br><br><br>
<table id="YourTable" class="table table-bordered">
    <thead>
    <tr>
        <th data-field="factoryId" data-align="center">厂商编号</th>
        <th data-field="deviceId" data-align="center">设备编号</th>
        <th data-field="identifyCode" data-align="center">验证码</th>
        <th data-align="center" data-formatter="addButton" data-events="operateEvents">操作</th>
    </tr>
    </thead>
    <input type="hidden" id="factoryIdTemp" th:value="${factoryId}">
</table>
<script th:src="@{/static/table/jquery.min.js}"></script>
<script th:src="@{/static/table/bootstrap-table.js}"></script>
<script th:src="@{/static/table/bootstrap-table-zh-CN.js}"></script>
<script th:src="@{/static/appJs/deviceInfoMag.js}"></script>
<script th:src="@{/static/bootstrap-3.3.7/js/bootstrap.min.js}"></script>

<!-- 模态框（Modal） -->
<div  class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    绑定设备
                </h4>
            </div>
            <div class="modal-body">
                <input class="form-control" id="deviceId" placeholder="请输入设备编号">
                <input type="hidden" id="factoryId" >
            </div>
            <div class="modal-footer">
                <button id="colseModal" type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>
                <button type="button" class="btn btn-primary" onclick="OKServer(deviceId.value,factoryId.value)">
                    保存
                </button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

</body>
</html>
